package com.chigga.admin.controller;

import com.chigga.admin.domain.dto.UserLoginUsernameDTO;
import com.chigga.admin.domain.vo.UserLoginUsernameVO;
import com.chigga.common.core.domain.ResponseResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录接口（仅为了生成接口文档，实际在 security 过滤器里处理，请求到不了这里）
 * @author DefChigga
 */
@Tag(name = "用户登录接口", description = "登录接口描述")
@Slf4j
@RestController
public class UserLoginController {
    /**
     * 登录
     */
    @Operation(summary = "用户名密码登录", description = "用户名密码登录描述")
    @PostMapping("/user/login/username")
    public ResponseResult<UserLoginUsernameVO> login(@Valid @RequestBody UserLoginUsernameDTO userLoginUsernameVO) {
        return null;
    }
}
